package com.bestescortbedsystem.entity;

import java.util.ArrayList;
import java.util.List;

public class SesUserSharingMessageExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    public SesUserSharingMessageExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMessageidIsNull() {
            addCriterion("messageId is null");
            return (Criteria) this;
        }

        public Criteria andMessageidIsNotNull() {
            addCriterion("messageId is not null");
            return (Criteria) this;
        }

        public Criteria andMessageidEqualTo(Long value) {
            addCriterion("messageId =", value, "messageid");
            return (Criteria) this;
        }

        public Criteria andMessageidNotEqualTo(Long value) {
            addCriterion("messageId <>", value, "messageid");
            return (Criteria) this;
        }

        public Criteria andMessageidGreaterThan(Long value) {
            addCriterion("messageId >", value, "messageid");
            return (Criteria) this;
        }

        public Criteria andMessageidGreaterThanOrEqualTo(Long value) {
            addCriterion("messageId >=", value, "messageid");
            return (Criteria) this;
        }

        public Criteria andMessageidLessThan(Long value) {
            addCriterion("messageId <", value, "messageid");
            return (Criteria) this;
        }

        public Criteria andMessageidLessThanOrEqualTo(Long value) {
            addCriterion("messageId <=", value, "messageid");
            return (Criteria) this;
        }

        public Criteria andMessageidIn(List<Long> values) {
            addCriterion("messageId in", values, "messageid");
            return (Criteria) this;
        }

        public Criteria andMessageidNotIn(List<Long> values) {
            addCriterion("messageId not in", values, "messageid");
            return (Criteria) this;
        }

        public Criteria andMessageidBetween(Long value1, Long value2) {
            addCriterion("messageId between", value1, value2, "messageid");
            return (Criteria) this;
        }

        public Criteria andMessageidNotBetween(Long value1, Long value2) {
            addCriterion("messageId not between", value1, value2, "messageid");
            return (Criteria) this;
        }

        public Criteria andMessagetitleIsNull() {
            addCriterion("messageTitle is null");
            return (Criteria) this;
        }

        public Criteria andMessagetitleIsNotNull() {
            addCriterion("messageTitle is not null");
            return (Criteria) this;
        }

        public Criteria andMessagetitleEqualTo(String value) {
            addCriterion("messageTitle =", value, "messagetitle");
            return (Criteria) this;
        }

        public Criteria andMessagetitleNotEqualTo(String value) {
            addCriterion("messageTitle <>", value, "messagetitle");
            return (Criteria) this;
        }

        public Criteria andMessagetitleGreaterThan(String value) {
            addCriterion("messageTitle >", value, "messagetitle");
            return (Criteria) this;
        }

        public Criteria andMessagetitleGreaterThanOrEqualTo(String value) {
            addCriterion("messageTitle >=", value, "messagetitle");
            return (Criteria) this;
        }

        public Criteria andMessagetitleLessThan(String value) {
            addCriterion("messageTitle <", value, "messagetitle");
            return (Criteria) this;
        }

        public Criteria andMessagetitleLessThanOrEqualTo(String value) {
            addCriterion("messageTitle <=", value, "messagetitle");
            return (Criteria) this;
        }

        public Criteria andMessagetitleLike(String value) {
            addCriterion("messageTitle like", value, "messagetitle");
            return (Criteria) this;
        }

        public Criteria andMessagetitleNotLike(String value) {
            addCriterion("messageTitle not like", value, "messagetitle");
            return (Criteria) this;
        }

        public Criteria andMessagetitleIn(List<String> values) {
            addCriterion("messageTitle in", values, "messagetitle");
            return (Criteria) this;
        }

        public Criteria andMessagetitleNotIn(List<String> values) {
            addCriterion("messageTitle not in", values, "messagetitle");
            return (Criteria) this;
        }

        public Criteria andMessagetitleBetween(String value1, String value2) {
            addCriterion("messageTitle between", value1, value2, "messagetitle");
            return (Criteria) this;
        }

        public Criteria andMessagetitleNotBetween(String value1, String value2) {
            addCriterion("messageTitle not between", value1, value2, "messagetitle");
            return (Criteria) this;
        }

        public Criteria andMessagetypeIsNull() {
            addCriterion("messageType is null");
            return (Criteria) this;
        }

        public Criteria andMessagetypeIsNotNull() {
            addCriterion("messageType is not null");
            return (Criteria) this;
        }

        public Criteria andMessagetypeEqualTo(String value) {
            addCriterion("messageType =", value, "messagetype");
            return (Criteria) this;
        }

        public Criteria andMessagetypeNotEqualTo(String value) {
            addCriterion("messageType <>", value, "messagetype");
            return (Criteria) this;
        }

        public Criteria andMessagetypeGreaterThan(String value) {
            addCriterion("messageType >", value, "messagetype");
            return (Criteria) this;
        }

        public Criteria andMessagetypeGreaterThanOrEqualTo(String value) {
            addCriterion("messageType >=", value, "messagetype");
            return (Criteria) this;
        }

        public Criteria andMessagetypeLessThan(String value) {
            addCriterion("messageType <", value, "messagetype");
            return (Criteria) this;
        }

        public Criteria andMessagetypeLessThanOrEqualTo(String value) {
            addCriterion("messageType <=", value, "messagetype");
            return (Criteria) this;
        }

        public Criteria andMessagetypeLike(String value) {
            addCriterion("messageType like", value, "messagetype");
            return (Criteria) this;
        }

        public Criteria andMessagetypeNotLike(String value) {
            addCriterion("messageType not like", value, "messagetype");
            return (Criteria) this;
        }

        public Criteria andMessagetypeIn(List<String> values) {
            addCriterion("messageType in", values, "messagetype");
            return (Criteria) this;
        }

        public Criteria andMessagetypeNotIn(List<String> values) {
            addCriterion("messageType not in", values, "messagetype");
            return (Criteria) this;
        }

        public Criteria andMessagetypeBetween(String value1, String value2) {
            addCriterion("messageType between", value1, value2, "messagetype");
            return (Criteria) this;
        }

        public Criteria andMessagetypeNotBetween(String value1, String value2) {
            addCriterion("messageType not between", value1, value2, "messagetype");
            return (Criteria) this;
        }

        public Criteria andUsersenderidIsNull() {
            addCriterion("userSenderId is null");
            return (Criteria) this;
        }

        public Criteria andUsersenderidIsNotNull() {
            addCriterion("userSenderId is not null");
            return (Criteria) this;
        }

        public Criteria andUsersenderidEqualTo(Long value) {
            addCriterion("userSenderId =", value, "usersenderid");
            return (Criteria) this;
        }

        public Criteria andUsersenderidNotEqualTo(Long value) {
            addCriterion("userSenderId <>", value, "usersenderid");
            return (Criteria) this;
        }

        public Criteria andUsersenderidGreaterThan(Long value) {
            addCriterion("userSenderId >", value, "usersenderid");
            return (Criteria) this;
        }

        public Criteria andUsersenderidGreaterThanOrEqualTo(Long value) {
            addCriterion("userSenderId >=", value, "usersenderid");
            return (Criteria) this;
        }

        public Criteria andUsersenderidLessThan(Long value) {
            addCriterion("userSenderId <", value, "usersenderid");
            return (Criteria) this;
        }

        public Criteria andUsersenderidLessThanOrEqualTo(Long value) {
            addCriterion("userSenderId <=", value, "usersenderid");
            return (Criteria) this;
        }

        public Criteria andUsersenderidIn(List<Long> values) {
            addCriterion("userSenderId in", values, "usersenderid");
            return (Criteria) this;
        }

        public Criteria andUsersenderidNotIn(List<Long> values) {
            addCriterion("userSenderId not in", values, "usersenderid");
            return (Criteria) this;
        }

        public Criteria andUsersenderidBetween(Long value1, Long value2) {
            addCriterion("userSenderId between", value1, value2, "usersenderid");
            return (Criteria) this;
        }

        public Criteria andUsersenderidNotBetween(Long value1, Long value2) {
            addCriterion("userSenderId not between", value1, value2, "usersenderid");
            return (Criteria) this;
        }

        public Criteria andUserreceivedidIsNull() {
            addCriterion("userReceivedId is null");
            return (Criteria) this;
        }

        public Criteria andUserreceivedidIsNotNull() {
            addCriterion("userReceivedId is not null");
            return (Criteria) this;
        }

        public Criteria andUserreceivedidEqualTo(Long value) {
            addCriterion("userReceivedId =", value, "userreceivedid");
            return (Criteria) this;
        }

        public Criteria andUserreceivedidNotEqualTo(Long value) {
            addCriterion("userReceivedId <>", value, "userreceivedid");
            return (Criteria) this;
        }

        public Criteria andUserreceivedidGreaterThan(Long value) {
            addCriterion("userReceivedId >", value, "userreceivedid");
            return (Criteria) this;
        }

        public Criteria andUserreceivedidGreaterThanOrEqualTo(Long value) {
            addCriterion("userReceivedId >=", value, "userreceivedid");
            return (Criteria) this;
        }

        public Criteria andUserreceivedidLessThan(Long value) {
            addCriterion("userReceivedId <", value, "userreceivedid");
            return (Criteria) this;
        }

        public Criteria andUserreceivedidLessThanOrEqualTo(Long value) {
            addCriterion("userReceivedId <=", value, "userreceivedid");
            return (Criteria) this;
        }

        public Criteria andUserreceivedidIn(List<Long> values) {
            addCriterion("userReceivedId in", values, "userreceivedid");
            return (Criteria) this;
        }

        public Criteria andUserreceivedidNotIn(List<Long> values) {
            addCriterion("userReceivedId not in", values, "userreceivedid");
            return (Criteria) this;
        }

        public Criteria andUserreceivedidBetween(Long value1, Long value2) {
            addCriterion("userReceivedId between", value1, value2, "userreceivedid");
            return (Criteria) this;
        }

        public Criteria andUserreceivedidNotBetween(Long value1, Long value2) {
            addCriterion("userReceivedId not between", value1, value2, "userreceivedid");
            return (Criteria) this;
        }

        public Criteria andMessagesendtypeIsNull() {
            addCriterion("messageSendType is null");
            return (Criteria) this;
        }

        public Criteria andMessagesendtypeIsNotNull() {
            addCriterion("messageSendType is not null");
            return (Criteria) this;
        }

        public Criteria andMessagesendtypeEqualTo(Integer value) {
            addCriterion("messageSendType =", value, "messagesendtype");
            return (Criteria) this;
        }

        public Criteria andMessagesendtypeNotEqualTo(Integer value) {
            addCriterion("messageSendType <>", value, "messagesendtype");
            return (Criteria) this;
        }

        public Criteria andMessagesendtypeGreaterThan(Integer value) {
            addCriterion("messageSendType >", value, "messagesendtype");
            return (Criteria) this;
        }

        public Criteria andMessagesendtypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("messageSendType >=", value, "messagesendtype");
            return (Criteria) this;
        }

        public Criteria andMessagesendtypeLessThan(Integer value) {
            addCriterion("messageSendType <", value, "messagesendtype");
            return (Criteria) this;
        }

        public Criteria andMessagesendtypeLessThanOrEqualTo(Integer value) {
            addCriterion("messageSendType <=", value, "messagesendtype");
            return (Criteria) this;
        }

        public Criteria andMessagesendtypeIn(List<Integer> values) {
            addCriterion("messageSendType in", values, "messagesendtype");
            return (Criteria) this;
        }

        public Criteria andMessagesendtypeNotIn(List<Integer> values) {
            addCriterion("messageSendType not in", values, "messagesendtype");
            return (Criteria) this;
        }

        public Criteria andMessagesendtypeBetween(Integer value1, Integer value2) {
            addCriterion("messageSendType between", value1, value2, "messagesendtype");
            return (Criteria) this;
        }

        public Criteria andMessagesendtypeNotBetween(Integer value1, Integer value2) {
            addCriterion("messageSendType not between", value1, value2, "messagesendtype");
            return (Criteria) this;
        }

        public Criteria andMessagetimeIsNull() {
            addCriterion("messageTime is null");
            return (Criteria) this;
        }

        public Criteria andMessagetimeIsNotNull() {
            addCriterion("messageTime is not null");
            return (Criteria) this;
        }

        public Criteria andMessagetimeEqualTo(String value) {
            addCriterion("messageTime =", value, "messagetime");
            return (Criteria) this;
        }

        public Criteria andMessagetimeNotEqualTo(String value) {
            addCriterion("messageTime <>", value, "messagetime");
            return (Criteria) this;
        }

        public Criteria andMessagetimeGreaterThan(String value) {
            addCriterion("messageTime >", value, "messagetime");
            return (Criteria) this;
        }

        public Criteria andMessagetimeGreaterThanOrEqualTo(String value) {
            addCriterion("messageTime >=", value, "messagetime");
            return (Criteria) this;
        }

        public Criteria andMessagetimeLessThan(String value) {
            addCriterion("messageTime <", value, "messagetime");
            return (Criteria) this;
        }

        public Criteria andMessagetimeLessThanOrEqualTo(String value) {
            addCriterion("messageTime <=", value, "messagetime");
            return (Criteria) this;
        }

        public Criteria andMessagetimeLike(String value) {
            addCriterion("messageTime like", value, "messagetime");
            return (Criteria) this;
        }

        public Criteria andMessagetimeNotLike(String value) {
            addCriterion("messageTime not like", value, "messagetime");
            return (Criteria) this;
        }

        public Criteria andMessagetimeIn(List<String> values) {
            addCriterion("messageTime in", values, "messagetime");
            return (Criteria) this;
        }

        public Criteria andMessagetimeNotIn(List<String> values) {
            addCriterion("messageTime not in", values, "messagetime");
            return (Criteria) this;
        }

        public Criteria andMessagetimeBetween(String value1, String value2) {
            addCriterion("messageTime between", value1, value2, "messagetime");
            return (Criteria) this;
        }

        public Criteria andMessagetimeNotBetween(String value1, String value2) {
            addCriterion("messageTime not between", value1, value2, "messagetime");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}